html, body {
    margin: 0;
    height: 100%;
}

body {
    background: url("../images/background.png");
    min-height: 100vh;
    background-position: center center; /* Background image is centered vertically and horizontally at all times */
    background-attachment: fixed; /* Background image is fixed in the viewport so that it doesn't move when the content's height is greater than the image's height */
    background-repeat: no-repeat;
    background-size: cover; /* This is what makes the background image rescale based on the container's size */
    overflow-y: scroll;
}

body > div {
    margin-top: 80px;
    flex: 1;
    display: flex;
    height: 100%;
    margin-bottom: auto;
}

#header, #content, #footer {
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    padding: 5px;
    margin: 5px 15%;
}

#header, #footer {
    background: #2c3e50;
    margin: 0;
    color: white;
}

#header {
    height: 65px;
    font-size: 25px;
    border-bottom: 1px solid black;
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
}

#headerMenu{
    padding-top: 0px;
    margin-top: 0px;
    margin-top: auto;
    margin-bottom: auto;
    font-family: 'Open Sans Condensed', sans-serif;
}

#headerMenu li{
    list-style:none;
    float:left;
/*    margin: 0px 20px 0px 0px;*/
}

#headerMenu button{
    display:block;
    text-decoration:none;
    margin:0;
    color:#111;
    background: transparent;
    border: 0px;
    color: #FFFFFF;
    font-size: 25px;
    font-family: 'Open Sans Condensed', sans-serif;
    height: 70px;
    width: 200px;
    cursor: pointer;
}

#headerMenu li button:hover {
    background: #2c3f58;
}

#headerMenu li ul {
    position:absolute;
    visibility:hidden;
    border: 1px solid #2c3e50;
    margin: 0px;
    padding: 0px;
}

#headerMenu li ul li {
    float:none;
    background: #ffffff;
    color: #000000;
    text-align: left;
    font-size: 20px;
    cursor: pointer;
    width: 200px;
}

#headerMenu li ul li button {
    background: transparent;
    color: #000000;
    text-align: left;
    font-size: 20px;
    cursor: pointer;
    width: 200px;
}

#headerMenu li ul li button:focus {
    outline: 0;
}

#headerMenu li ul li button:hover {
    background: #2c3f58;
    color: #ffffff;
}

#content {
    flex: 1;
    overflow-y: hidden;
    flex-direction: column;
    height: 98%;
}

#footer {
    height: 2%;
    border-top: 1px solid black;
    justify-content: center;
}

table, table tr {
    border: 1px solid black;
    text-align: left;
}

table #row-0 td {
    vertical-align: top;
}

#new-bar-grid {
    width: 100%;
}

#new-bar-grid tr:nth-child(even){
    background: gainsboro;
}

#new-bar-grid tr:nth-child(odd){
    background: white;
}

#new-user-grid tr:nth-child(even){
    background: gainsboro;
}

#new-user-grid tr:nth-child(odd){
    background: white;
}

.responsive-table td {
    vertical-align: top !important;
}

.responsive-table td input, .responsive-table td textarea, .responsive-table td select {
    vertical-align: top !important;
}

.responsive-table th {
    vertical-align: middle !important;
}

.responsive-table th img{
    vertical-align: middle !important;
}

#description {
    height: 16px;
}

#description:focus {
    height: 100px;
    width: 400px;
}

#button-wrapper {
    padding-top: 4px;
}

#add-row-btn{
    background: url("../images/add.png") no-repeat;
}

#reset-btn, #refresh-btn {
    background: url("../images/reset.png") no-repeat;
}

#run-sql-btn {
    background: url("../images/run-sql.png") no-repeat;
}

.delete-row-btn, #delete-btn{
    background: url("../images/delete.png") no-repeat;
}

.button {
    width: 20px;
    height: 20px;
    border: none;
    outline: 0;
}

.disabled {
    opacity: 0.4;
    cursor: auto !important;
}

#navigation span {
    justify-content: center;
    cursor: pointer;
}

#navigation span:hover {
    text-decoration: underline;
    font-size: 110%;
    color: darkslategray;
}

#logo{
    width: 124px;
    height: 60px;
}

/*LOGIN DIALOG START*/
#outOfLogInDialog{
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
}

#logInDialog{
    position: fixed;
    top: calc(30% - 100px);
    left: calc(50% - 200px);
    min-height: 200px;
    width: 400px;
    z-index: 1000;
    background: #fff;
    font-family: 'Open Sans Condensed', sans-serif;
    color: #000;
    -webkit-box-shadow: 10px 17px 43px 14px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 17px 43px 14px rgba(0,0,0,0.75);
    box-shadow: 10px 17px 43px 14px rgba(0,0,0,0.75);
    flex-flow: column;
}

#logInDialog table, #sendPasswordTable, #logInDialog div:not(:first-child){
    border: 0px;
    padding-left: 60px;
}

#logInDialog >#logInDialogHeader{
    background: #2c3f58;
    color: #fff;
}

#forgotPassword{
    font-size: 12px;
}

#forgotPassword:hover{
    font-size: 14px;
    cursor: pointer;
    
}

#confirmLoginBtn, #cancelLoginBtn, #sendPasswordBtn{
    border: 1px solid #000;
    background: #2c3f58;
    height: 30px;
    width: 80px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Open Sans Condensed', sans-serif;
}

#logInEmail, #logInPassword, #sendPasswordInput{
    width: 160px;
    font-size: 18px;
    font-family: 'Open Sans Condensed', sans-serif;
}

#sendPasswordInput{
    margin-top: 7px;
}

#sendPasswordTable{
    display: none;
}

.hidden {
    display: none;
}

.v-align-middle {
    vertical-align: middle !important;
}

/*LOGIN DIALOG END*/

@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px){
    
    /* Force table to not be like tables anymore */
    .responsive-table table, .responsive-table thead, .responsive-table tbody, .responsive-table th, .responsive-table td, .responsive-table tr { 
        display: block; 
    }
    
    .responsive-table tr:first-child{
        display: none;
    }
    
    /* Hide table headers (but not display: none;, for accessibility) */
    .responsive-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .responsive-table tr { border: 1px solid #ccc; }
    
    .responsive-table td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
    }
    
    .responsive-table td:before { 
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
    }
    
    /*Label the data*/
    #new-bar-grid td:nth-of-type(1):before { content: "Name"; }
    #new-bar-grid td:nth-of-type(2):before { content: "Country"; }
    #new-bar-grid td:nth-of-type(3):before { content: "Postal No."; }
    #new-bar-grid td:nth-of-type(4):before { content: "City"; }
    #new-bar-grid td:nth-of-type(5):before { content: "Address"; }
    #new-bar-grid td:nth-of-type(6):before { content: "CC"; }
    #new-bar-grid td:nth-of-type(7):before { content: "Beer Price"; }
    #new-bar-grid td:nth-of-type(8):before { content: "Description"; }
    #new-bar-grid td:nth-of-type(9):before { content: "Age Limit"; }
    #new-bar-grid td:nth-of-type(10):before { content: "Owner"; }
    #new-bar-grid td:nth-of-type(11):before { content: "Status"; }
    #new-bar-grid td:nth-of-type(12):before { content: ""; }
    
    #new-user-grid td:nth-of-type(1):before { content: "Username"; }
    #new-user-grid td:nth-of-type(2):before { content: "Email"; }
    #new-user-grid td:nth-of-type(3):before { content: "First Name"; }
    #new-user-grid td:nth-of-type(4):before { content: "Last Name"; }
    #new-user-grid td:nth-of-type(5):before { content: "Password"; }
    #new-user-grid td:nth-of-type(6):before { content: "Account Type"; }
    #new-user-grid td:nth-of-type(12):before { content: ""; }
}